package cn.pku.ss.sirx.sna.ib;

import cn.pku.ss.sirx.sna.ib.bean.MessageBoard;
import cn.pku.ss.sirx.sna.ib.bean.XiaoneiSite;

/**
 * Read users' personal and message board information from database.
 * Build the reply trees.
 * Store the influence information of the message board owner to others into new database, 
 * message board owner, replier, and date will form a primary key in the new database.
 *
 * @author SirX
 * @version 1.0
 */
public class InfluenceBuilder implements IBuilder<XiaoneiSite> {
    
    @Override
    public void build(XiaoneiSite site) {
        MessageBoardBuilder messageBoardBuilder = new MessageBoardBuilder();
        for (MessageBoard messageBoard : site) {
            messageBoardBuilder.build(messageBoard);
        }
    }

}
